home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Caml Light 0.7 / examples / minicaml / syntaxe.ml < prev    next >
Text File  |  1995-06-01  |  3KB  |  9 lines

  1. e_infixe motif1 "," (fun m1 m2 -> Motif_paire(m1,m2)) flux;;
  2.  
  3. let analyseur_lexical = construire_analyseur
  4.    ["function"; "let"; "rec"; "in"; "match"; "with"; "->"; ";;";
  5.     "true"; "false"; "["; "]"; "("; ")"; "::"; "|"; ",";
  6.     "*"; "/"; "-"; "+"; "="; "<>"; "<"; ">"; "<="; ">="; "::"];;
  7.  
  8. let lire_phrase f = phrase (analyseur_lexical f);;
  9.